﻿using System;
using System.Collections.Generic;
namespace CharacterCreation.Business
{
    public interface IRepository<ViewModel> 
     where ViewModel : new()
    {
        void Add(ViewModel viewModel);
        void Add(IEnumerable<ViewModel> viewModels);
        void Delete(Guid id);
        System.Collections.Generic.IEnumerable<ViewModel> Get();
        System.Collections.Generic.IEnumerable<ViewModel> Get(string where);
        System.Collections.Generic.IEnumerable<ViewModel> Get(string where, string orderby);
        ViewModel Get(Guid id);
        void Update(ViewModel entity);
    }
}
